
import com.baomidou.mybatisplus.core.metadata.IPage;
import java.util.List;

/**
* @author :${author}
* @description: ${desc}服务类接口
* @create date: ${createDate}
*/

public interface ${entityName}Service {

    /**
    * 保存${desc}
    * @param ${entityNameLower}DTO
    * @return
    */
    int add(${entityName}DTO ${entityNameLower}DTO);

    /**
    * 更新${desc}
    * @param ${entityNameLower}DTO
    * @return
    */
    int update(${entityName}DTO ${entityNameLower}DTO);

<#if primaryKey!='noPrimaryKey'>
    /**
    * 删除${desc}
    * @param ${primaryKey}
    * @return
    */
    int remove(${javaKeyType} ${primaryKey});

    /**
    * 根据条件查询${desc}
    * @param ${primaryKey}
    * @return
    */
    ${entityName}VO detail(${javaKeyType} ${primaryKey});
</#if>

    /**
    * 查询${desc}
    * @param ${entityNameLower}DTO
    * @return
    */
    List<${entityName}VO> findList(${entityName}DTO ${entityNameLower}DTO);

    /**
    * 查询${desc}分页信息
    * @param ${entityNameLower}PageDTO
    * @return
    */
    IPage<${entityName}VO> findPageList(${entityName}PageDTO ${entityNameLower}PageDTO);
}
